package cn.jieruoda.eb.user.domain.repository;

import cn.jieruoda.eb.user.domain.entity.UserBrokerageRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserBrokerageRecordRepository extends JpaRepository<UserBrokerageRecord, Integer> {
    List<UserBrokerageRecord> findByUidAndStatus(Integer uid, Boolean status);
    List<UserBrokerageRecord> findByUidAndType(Integer uid, Integer type);
    List<UserBrokerageRecord> findByUidAndLinkTypeAndLinkId(Integer uid, String linkType, String linkId);
} 